﻿using AutoMapper;
using Infrastructure.Extend;
using Infrastructure.Web;
using MyData.ApiDto;
using MyData.Dto;
using MyData.Models;
using MyDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyApplication
{
    public class SynsRLApp
    {
        private ISyncRLRepository _syncRLRepository;
        public SynsRLApp(ISyncRLRepository syncRLRepository)
        {
            _syncRLRepository = syncRLRepository;
        }
        public SynsOput GetSynsOput(Guid mobileId,int pageIndex=0,int pageSize=10)
        {
            return _syncRLRepository.GetSynsOput(mobileId, pageIndex,pageSize);
        }
        public bool DeleteSyns(Guid mobileId)
        {
            return _syncRLRepository.DeleteSyns(mobileId);
        }
        public List<SyncRL> GetSynsUsers(Guid mobileId)
        {
            return _syncRLRepository.GetSynsUsers(mobileId);
        }
        public bool DeleteSynsById(Guid synsId)
        {
            return _syncRLRepository.DeleteSynsById(synsId);
        }
        public SyncRL GetSynsRlById(Guid synsId)
        {
            return _syncRLRepository.GetSynsById(synsId);
        }
    }
}

